package net.llz.mapper;

import net.llz.model.PermissionDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Let_fan
 * @since 2022-10-08
 */
public interface PermissionMapper extends BaseMapper<PermissionDO> {

//
//    @Select("select p.id as id, p.name as name, p.url as url from  role_permission rp " +
//            "left join permission p on rp.permission_id=p.id " +
//            "where  rp.role_id= #{roleId} ")
    List<PermissionDO> findPermissionListByRoleId(@Param("roleId") Integer roleId);


}
